import java.io.*;

public class Iowork01 {
    public static void main(String[] args) {
        Iowork01();
    }

    public static void Iowork01() {
        FileInputStream fis = null;
        FileOutputStream fis1 = null;
        try {
            fis = new FileInputStream("/Users/EDC/Desktop/asd.txt");
            fis1 = new FileOutputStream("/Users/EDC/Desktop/asd.txt");
            int d = 0;
            byte[] bs = new byte[1024];
            while ((d = fis.read(bs)) != -1) {
                fis1.write(bs, 0, d);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
